﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;

namespace LIMS.Entities
{
    [ActiveRecord(Lazy = true)]
    [Serializable]
    public class Supplier : ActiveRecordBase
    {

        #region Private
        private int id;
        private string code = string.Empty;
        private string name = string.Empty;
        private string companyname = string.Empty;
        private string contactname = string.Empty;
        private string email = string.Empty;
        private string telephone = string.Empty;
        private string vatnumber = string.Empty;
        private string address = string.Empty;
        private string website = string.Empty;
        private string status = string.Empty;
        private DateTime? createdDateTime;
        private DateTime? lastModifiedDateTime;
        private int createdBy;
        private int lastModifiedBy;
        #endregion

        #region public
        [PrimaryKey(PrimaryKeyType.Increment)]
        public virtual int Id
        {
            get { return id; }
            set { id = value; }
        }
        public virtual string Code
        {
            get { return code; }
            set { code = value; }
        }
        public virtual string Name
        {
            get { return name; }
            set { name = value; }
        }
        public virtual string CompanyName
        {
            get { return companyname; }
            set { companyname = value; }
        }
        public virtual string ContactName
        {
            get { return contactname; }
            set { contactname = value; }
        }
        public virtual string Address
        {
            get { return address; }
            set { address = value; }
        }
        public virtual string Telephone
        {
            get { return telephone; }
            set { telephone = value; }
        }
        public virtual string Email
        {
            get { return email; }
            set { email = value; }
        }
        public virtual string VatNumber
        {
            get { return vatnumber; }
            set { vatnumber = value; }
        }
        public virtual string Website
        {
            get { return website; }
            set { website = value; }
        }
        public virtual string Status
        {
            get { return status; }
            set { status = value; }
        }
       

        public virtual DateTime? CreatedDateTime
        {
            get { return createdDateTime; }
            set { createdDateTime = value; }
        }
        public virtual DateTime? LastModifiedDateTime
        {
            get { return lastModifiedDateTime; }
            set { lastModifiedDateTime = value; }
        }
        public virtual int CreatedBy
        {
            get { return createdBy; }
            set { createdBy = value; }
        }
        public virtual int LastModifiedBy
        {
            get { return lastModifiedBy; }
            set { lastModifiedBy = value; }
        }
       
        #endregion
    }


}
